trigger AttachmentTrigger on Attachment (before insert,before delete,after insert,after delete) {


 new Triggers()
    .bind(triggers.Evt.beforeinsert , new AttachmentHandler())
    .bind(triggers.Evt.beforedelete ,  new AttachmentHandler())
    
    .manage(); 


	if(Trigger.isAfter && Trigger.isInsert)AttachmentWorkOrderHandler.getUploadTime(Trigger.new);
	if(Trigger.isAfter ){
		if(Trigger.isInsert )AttachmentHandler.countRetunOrderAtts(Trigger.new);
		if(Trigger.isDelete )AttachmentHandler.countRetunOrderAtts(Trigger.old);
	}



}